package com.basker.pisces.core.meta.row;

import com.basker.pisces.core.meta.DataField;
import com.basker.pisces.core.query.meta.FieldDesc;

public class RowDataField extends DataField {

    /**
     * 如果当前字段属于引用表，在select模式下，需要此字段定位'关联其所属表的外键'
     */
    private String hostTableFkFieldName;

    public RowDataField(FieldDesc fieldDesc) {
        super(fieldDesc.getAlias(), fieldDesc.getDisplayName(), fieldDesc.getName(), fieldDesc.getHostTable().getName(),
                false, false, fieldDesc.getValueType(), null);
    }

    public String getHostTableFkFieldName() {
        return hostTableFkFieldName;
    }

    public void setHostTableFkFieldName(String hostTableFkFieldName) {
        this.hostTableFkFieldName = hostTableFkFieldName;
    }

}
